home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / MacPerl 5.0.3 / Preinstalled MacPerl (FAT) / lib / auto / POSIX / fstat.al < prev    next >
Encoding:
Text File  |  1995-08-04  |  243 b   |  14 lines  |  [once/pt: ]

  1. # NOTE: Derived from :::lib:POSIX.pm.  Changes made here will be lost.
  2. package POSIX;
  3.  
  4. sub fstat {
  5.     usage "fstat(fd)" if @_ != 1;
  6.     local(*TMP);
  7.     open(TMP, "<&$_[0]");        # Gross.
  8.     local(@l) = stat(TMP);
  9.     close(TMP);
  10.     @l;
  11. }
  12.  
  13. 1;
  14.